#include <stdio.h>
#include <string.h>

int main(int argc, char *argv[])
{
	char s[128];
	fgets(s, 128, stdin);
	
	int len = strlen(s), i;
	printf("%c", toupper(s[0]));
	for (i = 0; i < len; i++) {
		if (s[i] == ' ' && s[i+1] != ' ') {
			printf("%c", toupper(s[i+1]));
		}
	}
	printf("\n");

	return 0;
}
